const koaRouter = require('@koa/router')
const userController = require('../controller/user.controller')
//中间件
const { verifyUser, handlePassword } = require('../middleware/user.middleware')
// prefix前缀
const userRouter = new koaRouter({ prefix: '/users' })
userRouter.post('/', verifyUser, handlePassword, userController.create)
//导出路由
module.exports = userRouter